home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Visual Basic Source Code
/
Visual Basic Source Code.iso
/
vbsource
/
btrtest
/
btrieve.bas
next >
Wrap
BASIC Source File
|
1995-03-14
|
2KB
|
69 lines
'Btrieve Operation Code Constants
Global Const BOPEN = 0
Global Const BCLOSE = 1
Global Const BINSERT = 2
Global Const BUPDATE = 3
Global Const BDELETE = 4
Global Const BGET_EQ = 5
Global Const BGET_NEXT = 6
Global Const BGET_PREV = 7
Global Const BGET_GT = 8
Global Const BGET_GOE = 9
Global Const BGET_LT = 10
Global Const BGET_LOE = 11
Global Const BGET_FIRST = 12
Global Const BGET_LAST = 13
Global Const BCREATE = 14
Global Const BSTAT = 15
Global Const BBEG_TRAN = 19
Global Const BEND_TRAN = 20
Global Const BABORT_TRAN = 21
Global Const BGET_POS = 22
Global Const BGET_DIRECT = 23
Global Const BSTEP_NEXT = 24
Global Const BSTOP = 25
Global Const BVERSION = 26
Global Const BUNLOCK = 27
Global Const BRESET = 28
Global Const BSTEP_FIRST = 33
Global Const BSTEP_LAST = 34
Global Const BSTEP_PREV = 35
Type POSBLK
PBELEMENTS As String * 128 'MUST Be 128 Bytes
End Type
Type KEYBUFFER
FILENAME As String * 128
End Type
Type BUFFER
EmpNum As String * 5
LstNam As String * 20
FstNam As String * 20
EmpMid As String * 20
EmpKik As String * 12
Addr01 As String * 40
Addr02 As String * 40
SocSec As String * 25
State As String * 20
ZipCod As String * 10
County As String * 20
Countr As String * 20
HPhone As String * 15
WPhone As String * 15
Filler As String * 218
'File length = 500 bytes
End Type
Declare Function WBTRVINIT Lib "WBTRCALL.DLL" (INIT As Any) As Integer
Declare Function WBTRVSTOP Lib "WBTRCALL.DLL" () As Integer
Declare Function BTRCALL Lib "WBTRCALL.DLL" (ByVal OP%, PB As POSBLK, DB As Any, DL As Integer, KB As Any, ByVal KL%, ByVal KN%) As Integer
Global INIT As String * 64
Global DATABUFF As BUFFER
Global POSBLOCK As POSBLK
Global KEYBUFF As KEYBUFFER
Global KeyNum As Integer